﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Coldairarrow.Entity.PB
{
    /// <summary>
    /// 货区表
    /// </summary>
    [Table("PB_StorArea")]
    public class PB_StorArea
    {

        /// <summary>
        /// Id
        /// </summary>
        [Key, Column(Order = 1)]
        public String Id { get; set; }

        /// <summary>
        /// 仓库ID
        /// </summary>
        public String StorId { get; set; }
    

        /// <summary>
        /// 货区编号
        /// </summary>
        public String Code { get; set; }

        /// <summary>
        /// 货区名称
        /// </summary>
        public String Name { get; set; }

        /// <summary>
        /// 货区类型
        /// </summary>
        public String Type { get; set; }

        // <summary>
        /// 二维码
        /// </summary>
        public String QrCode { get; set; }

        ///// <summary>
        ///// 是否缓存区
        ///// </summary>
        //public Boolean IsCache { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 创建人ID
        /// </summary>
        public String CreatorId { get; set; }

        /// <summary>
        /// 删除状态：0=未删除；1＝已删除；
        /// </summary>
        public Boolean Deleted { get; set; }


        /// <summary>
        /// 纬度
        /// </summary>
        public String Latitude { get; set; }

        /// <summary>
        /// 经度
        /// </summary>
        public String Longitude { get; set; }
        /// <summary>
        /// 长
        /// </summary>
        public Int32? ReservoirLongs { get; set; }
        /// <summary>
        /// 宽
        /// </summary>
        public Int32? Reservoirwidths { get; set; }
        /// <summary>
        /// 高
        /// </summary>
        public Int32? Reservoirheight { get; set; }
        public List<PB_AreaMaterial> PB_AreaMaterials { get; set; }

    }
    /// <summary>
    /// 打印队列
    /// </summary>
    public class StorAreaPrint {
        /// <summary>
        /// 库区id
        /// </summary>
        public List<string> StorAreaId { get; set; }

        /// <summary>
        /// 打印机id
        /// </summary>
        public string  Pritntid  {get; set; }        
    }
}